package ooday03;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zc=new Student("张三",34,"保定",1234,"2302");
        zc.sayHi();
        zc.eat();
        zc.sleep();
        zc.play("王五");


        Teacher ls=new Teacher("李四",32,"张家口",32332);
        ls.sayHi();
        ls.eat();
        ls.sleep();
        ls.teach();

        Doctor ww=new Doctor("王五",33,"石家庄","护士");
        ww.sayHi();
        ww.eat();
        ww.sleep();
        ww.cut();
    }
}
